﻿@model yc.Site.Models.Login
@{
	Layout = "~/Views/Shared/_Layout.cshtml";
	ViewBag.Title = "用户登录";
  }
@section head{
	<style type="text/css">
		body { font-size:10pt;}
		li { list-style: none; }
		.login_box { width: 620px; height: 320px; position: absolute; top: 50%; left: 50%; margin-top: -160px; margin-left: -310px; background: url(/images/login_banner.jpg) no-repeat; }
		ul.login_form { float: left; /*width: 580px;*/ width: 610px; height: 40px; background: url(/images/login_bg.jpg) repeat-x; padding: 8px 5px 0 5px /*20px*/; margin: 280px 0 0 0; }
		ul.login_form li { float: left; line-height: 22px; }
		ul.login_form li.rgt { float: right; }
		input[type=text], input[type=password] { border: 1px solid #ccc; }
		.validation-summary-errors { text-align: right; }
		.validation-summary-errors ul { padding: 0; list-style: none; }
		.validation-summary-errors ul li { display: inline; line-height: 200%; padding-left: 10px; }
	</style>
	<script type="text/javascript">
		$(function () { $("[type=text]:first").focus() });
	</script>
}
@using (Html.BeginForm())
{
	<div class="login_box">
		<ul class="login_form">
			<li>@Html.LabelFor(p => p.LoginName)</li>
			<li>@Html.EditorFor(p => p.LoginName)</li>
			<li>@Html.LabelFor(p => p.Password)</li>
			<li>@Html.EditorFor(p => p.Password)</li>
			<li>@Html.EditorFor(p => p.RememberMe)</li>
			<li>@Html.LabelFor(p => p.RememberMe)</li>
			<li class="rgt">
				<input type="submit" class="button" value="登录" /></li>
		</ul>
		@Html.ValidationSummary()
	</div>
}